package com.netstar.salesman_90dsp.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 用户model
 * 
 * @author zhangshuai
 * 
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class UserModel {
	/**
	 * 是否成功 true 为成功，false 为失败
	 */
	private boolean result;
	/**
	 * 登录信息
	 */
	private String msg;
	/**
	 * 用户id
	 */
	private String userId;
	/**
	 * 部门id
	 */
	private String deptId;
	/**
	 * 公司id
	 */
	private String companyId;
	/**
	 * 用户姓名
	 */
	private String userName;
	/**
	 * 用户头像
	 */
	private String userPic;

	public boolean isResult() {
		return result;
	}

	@JsonProperty("result")
	public void setResult(boolean result) {
		this.result = result;
	}

	public String getMsg() {
		return msg;
	}

	@JsonProperty("msg")
	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getUserId() {
		return userId;
	}

	@JsonProperty("userid")
	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getDeptId() {
		return deptId;
	}

	@JsonProperty("deptid")
	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}

	public String getCompanyId() {
		return companyId;
	}

	@JsonProperty("companyid")
	public void setCompanyId(String companyId) {
		this.companyId = companyId;
	}

	public String getUserName() {
		return userName;
	}

	@JsonProperty("username")
	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserPic() {
		return userPic;
	}

	@JsonProperty("userpic")
	public void setUserPic(String userPic) {
		this.userPic = userPic;
	}

}